#include <iostream>
#include <vector>

using namespace std;

struct Student
{
    unsigned int id;
    unsigned int age;
};

int main(int argc, char* argv[])
{
    vector<Student*> vec;
    vec.push_back(new Student{1, 20});
    vec.push_back(new Student{2, 30});

    for (auto it = vec.begin(); it != vec.end(); it++)
    {
        vec.erase(it);
        delete *it;
        break;
    }

    for (auto it = vec.begin(); it != vec.end(); it++)
    {
        cout << (*it)->id << "," << (*it)->age << endl;
    }

    return 0;
}